package com.msy.mai.launch.web.entity.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 三方登录对象
 *
 * @author Lion Li
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(title = "第三方登录对象", description = "第三方登录对象")
public class SocialLoginBody extends LoginBody {

    @NotBlank(message = "{social.source.not.blank}")
    @Schema(description = "第三方登录平台")
    private String source;

    @NotBlank(message = "{social.code.not.blank}")
    @Schema(description = "第三方登录code")
    private String socialCode;

    @NotBlank(message = "{social.state.not.blank}")
    @Schema(description = "第三方登录socialState")
    private String socialState;

}
